using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using DevExpress.XtraEditors;

namespace TCCT_CTC_CSDLDangVienV1
{
    /// <summary>
    /// User Interface class
    /// </summary>
    public static partial class UI
    {
        public class EventRadioEdit
        {
            public static void Radio_KeyDown(object sender, KeyEventArgs e)
            {
                if (e.KeyCode == Keys.Enter)
                    SendKeys.Send("{Tab}");
            }
        }

        public static class Radio
        {
            public static void ApplyDefault(RadioButton control)
            {
            }

            public static void ApplyDefault(RadioGroup control)
            {
                control.KeyDown += new KeyEventHandler(EventRadioEdit.Radio_KeyDown);
            }
        }
    }
}
